<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

##### 自动定时操作接口
## 自动确认完成，自动关闭订单
Route::get('task_order_cancel', 'task/taskOrderCancel');
## 团购订单
Route::get('task_group_order_cancel', 'task/taskGroupOrderCancel');


## 邀请H5
Route::get('user/invite', 'index/invite');
## 分享
Route::get('user/get_share', 'User.user/getShare');
## 支付宝回调地址
Route::any('ali_notify', 'ali_notify/index');
Route::any('ali_partner_notify', 'ali_notify/partner');

## 微信回调地址
Route::any('wx_notify', 'wx_notify/notify');
Route::any('wx_partner_notify', 'wx_notify/partner');
## APP版本
Route::get('get_app_version', 'index/getAppVersion');

# 获取短信验证码
Route::post('get_sms_verify_code', 'index/getSMSVerifyCode');
# 注册
Route::post('register', 'User.login/registerUser');
## 修改密码
Route::post('edit_user_password', 'User.login/editUserPassword');
# app账号登录
Route::post('app_login', 'User.login/getAppLogin');

### 首页数据
Route::get('get_index', 'Index.index/index');


### 短视频
# 视频上传
Route::post('video_upload', 'Index.video/saves');

# 视频列表(我的视频)
Route::get('video_lists', 'Index.video/lists');

# 视频列表(首页)
Route::post('videos', 'Index.video/videos');
# 视频评论列表(2级列表)
Route::post('video_comments', 'Index.video/comments');


# Banner
## banner信息
Route::get('get_banner_list', 'Banner.banner/getBannerList');

# 用户
## 购买VIP下单支付
Route::post('create_user_vip_order', 'User.user_vip/createUserVipOrder');
## 获取用户信息
Route::get('get_user_info', 'User.user/getUserInfo');
## 余额/学习金流水记录
Route::get('get_user_wallet_list', 'User.user/getUserWalletList');
## 用户观看记录
Route::get('get_user_watch_list', 'User.user/getUserWatchList');
## 用户修改密码
Route::post('update_password', 'User.user/updatePassword');
## 修改用户信息
Route::post('edit_user_info', 'User.user/editUserInfo');
## 联系方式
Route::get('get_contact_way', 'System.system/getContactWay');
## 关于我们
Route::get('get_about_us', 'System.system/getAboutUs');
## 拼团规则
Route::get('get_group_info', 'System.system/getGroupInfo');
## 我的邀请列表
Route::get('get_invite_list', 'User.user/getInviteList');
## 我的优惠券列表
Route::get('get_user_coupon_list', 'User.user_coupon/getUserCouponList');
## 领取优惠券
Route::post('get_user_coupon', 'User.user_coupon/getUserCoupon');
## 绑定提现账号
Route::post('build_user_withdraw_account', 'User.user/buildUserWithdrawAccount');

## 我的提现列表
Route::get('get_user_withdraw_list', 'User.user_withdraw/getUserWithdrawList');
## 提现申请
Route::post('get_withdraw', 'User.user_withdraw/getWithdraw');

## 免费商品领取页面
Route::get('get_free_goods_more', 'Free.free_goods/getFreeGoodsMore');
## 免费商品领取提交
Route::post('create_free_order', 'Free.free_goods/createFreeOrder');
## 领取开通会员积分
Route::post('get_vip_integral', 'Free.free_goods/getVipIntegral');


## 合伙人
## 合伙人详情
Route::get('get_partner_info', 'User.partner/getPartnerInfo');
## 预创建购买合伙人
Route::post('per_order_partner_info', 'User.partner/perOrderPartnerInfo');
## 购买合伙人下单支付
Route::post('create_order_partner', 'User.partner/createOrderPartner');

## 我的激活码
Route::get('get_user_vip_code_list', 'User.user_vip_code/getUserVipCodeList');
## 激活会员
Route::post('get_activate_vip', 'User.user_vip_code/getActivateVip');


## 反馈类型
Route::get('get_feedback_type_list', 'User.UserFeedback/getFeedbackTypeList');
## 意见反馈
Route::post('add_feedback', 'User.UserFeedback/addFeedback');
## 用户意见反馈列表
Route::get('get_feedback_list', 'User.UserFeedback/getFeedbackList');
## 反馈详情
Route::get('get_feedback', 'User.UserFeedback/getFeedback');


# 收货地址
## 收获列表
Route::get('get_user_address_list', 'User.user_address/getUserAddressList');
## 收货地址详情
Route::get('get_user_address_info', 'User.user_address/getUserAddressInfo');
## 设置默认
Route::post('edit_user_address_type', 'User.user_address/editUserAddressType');
## 添加地址
Route::post('add_user_address', 'User.user_address/addUserAddress');
## 修改地址
Route::post('edit_user_address', 'User.user_address/editUserAddress');
## 删除地址
Route::post('del_user_address', 'User.user_address/delUserAddress');


# 课程信息
## 课程分类
Route::get('get_course_cate_more', 'Course.course/getCourseCateMore');
## 课程列表
Route::get('get_course_list', 'Course.course/getCourseList');
## 课程详情
Route::get('get_course_info', 'Course.course/getCourseInfo');
## 课程报名预创建订单信息 (切换优惠券使用)
Route::post('pre_course_order_info', 'Course.course_order/preCourseOrderInfo');
## 课程报名下单
Route::post('create_course_order', 'Course.course_order/createCourseOrder');

##课程拼团
Route::post('pre_course_order_info', 'Course.course_order/preCourseOrderInfo');

# 视频信息
## 视频分类
Route::get('get_video_cate_more', 'Video.video/getVideoCateMore');
## 视频列表
Route::get('get_video_list', 'Video.video/getVideoList');
## 视频详情
Route::get('get_video_info', 'Video.video/getVideoInfo');
## 视频章节详情
Route::get('get_video_chapter_info', 'Video.video/getVideoChapterInfo');
## 视频点赞/取消
Route::post('get_video_like', 'Video.video/getVideoLike');
## 视频评论
Route::post('get_video_comment', 'Video.video/getVideoComment');
## 评论列表
Route::get('get_video_comment_list', 'Video.video/getVideoCommentList');


# 学校信息
## 地区列表
Route::get('get_school_area_more', 'School.school/getSchoolAreaMore');
## 列表
Route::get('get_school_list', 'School.school/getSchoolList');
## 详情
Route::get('get_school_info', 'School.school/getSchoolInfo');

# 商品信息
## 商城首页
Route::get('get_goods_index', 'Goods.goods/index');
## 商品分类
Route::get('get_goods_cate_more', 'Goods.goods/getGoodsCateMore');
## 猜你喜欢
Route::get('get_goods_like_list', 'Goods.goods/getGoodsLikeList');
## 商品列表
Route::get('get_goods_list', 'Goods.goods/getGoodsList');
## 商品详情
Route::get('get_goods_info', 'Goods.goods/getGoodsInfo');
## 预创建订单详情
Route::post('per_order_info', 'Goods.goods_order/preOrderInfo');
## 商品下单支付
Route::post('create_goods_order', 'Goods.goods_order/createGoodsOrder');

# 积分商城
## 商品分类
Route::get('get_shop_goods_cate_more', 'ShopGoods.shop_goods/getShopGoodsCateMore');
## 猜你喜欢
Route::get('get_shop_goods_like_list', 'ShopGoods.shop_goods/getShopGoodsLikeList');
## 商品列表
Route::get('get_shop_goods_list', 'ShopGoods.shop_goods/getShopGoodsList');
## 商品详情
Route::get('get_shop_goods_info', 'ShopGoods.shop_goods/getShopGoodsInfo');
## 预创建订单详情
Route::post('per_shop_order_info', 'ShopGoods.shop_goods_order/preShopOrderInfo');
## 商品下单支付
Route::post('create_shop_goods_order', 'ShopGoods.shop_goods_order/createShopGoodsOrder');


# 订单信息
## 订单列表
Route::get('get_order_list', 'Order.order/getOrderList');
## 订单详情
Route::get('get_order_info', 'Order.order/getOrderInfo');
## 取消订单
Route::post('cancel_order', 'Order.order/cancelOrder');
## 去支付
Route::post('get_order_pay', 'Order.order/getOrderPay');
## 删除订单
Route::post('del_order', 'Order.order/delOrder');
## 确认收货
Route::post('confirm_receipt_order', 'Order.order/confirmReceiptOrder');

#短视频-----------------------

##点赞/取消
Route::post('video_user_like', 'Index.userLike/save');
##关注/取消
Route::post('video_user_follow', 'Index.sns/follow');
## 点赞/评论/关注状态
Route::post('video_likes', 'Index.video/likes');


##上传接口
Route::post('uploads', 'Index.uploads/uploads');
##签名接口
Route::post('signature', 'Index.uploads/signature');

##评论
Route::post('video_user_comment_del', 'Index.userComment/del');
Route::post('video_user_comment_add', 'Index.userComment/add');
Route::post('video_user_comment_top', 'Index.userComment/top');
##个人中心
Route::get('video_user_center', 'Index.userCenter/other');
Route::get('video_user_center_video', 'Index.userCenter/video');
Route::post('video_user_center_set', 'Index.userCenter/sets');
Route::post('wx_pay_cheshi', 'Index.userCenter/cheshi');

Route::get('user_follow', 'Index.userCenter/my_follow');
Route::get('user_fans', 'Index.userCenter/user_fans');
##是否老师
Route::get('is_teacher', 'Index.userCenter/is_teacher');
##获取老师的线上课程
Route::get('teacher_courses', 'Index.userCenter/teacher_courses');


Route::get('user_goods', 'Index.userCenter/user_goods_lists');
Route::get('curriculum_lists', 'Index.userCenter/curriculum_lists');

Route::get('teacher_details', 'Index.userCenter/teacher');
##上下架
Route::post('user_is_show', 'Index.video/video_is_show_lists');


## 测试
Route::post('test_collage', 'index/testCollage');
## 测试
Route::post('test_notify', 'index/testNotify');
## 测试数据
Route::post('test_data', 'index/testData');
## 支付宝退款
Route::post('test_refund', 'User.user/zfbRefund');
